#ifndef CHECKCOMBOBOX_H
#define CHECKCOMBOBOX_H


#pragma once
#include <qcombobox.h>
#include<QListWidget>
#include<QLineEdit>

class CheckComboBox:
    public QComboBox
{
    Q_OBJECT
public:
    CheckComboBox(QWidget * parent = nullptr);
    ~CheckComboBox();
    void setValues(QStringList values);
    void push_back(QString value);
    QString text();//返回用户选择的值
protected slots:
    void Slot_StateChanged(int);
private:
    QListWidget *pListWidget = nullptr;
    QLineEdit *pLineEdit = nullptr;
};
#endif // CHECKCOMBOBOX_H
